package GUI.ManagerEmployee;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class AddSaleTemplatePnl extends JPanel {
	public JTextField textFieldId;
	public JTextField textFieldName;
	public JTextField textFieldDesc;
	public JButton btnTemplateOrder;
	
	/**
	 * Create the panel.//
	 */
	public AddSaleTemplatePnl() {
		setLayout(null);
		
		btnTemplateOrder = new JButton("Add Order");
		btnTemplateOrder.setBounds(54, 266, 97, 23);
		add(btnTemplateOrder);
		
		JLabel lblSaleId = new JLabel("Sale Id:");
		lblSaleId.setBounds(28, 34, 46, 14);
		add(lblSaleId);
		
		JLabel lblSaleName = new JLabel("Sale Name:");
		lblSaleName.setBounds(28, 71, 66, 14);
		add(lblSaleName);
		
		JLabel lblDescription = new JLabel("Description:");
		lblDescription.setBounds(28, 113, 66, 14);
		add(lblDescription);
		
		textFieldId = new JTextField();
		textFieldId.setBounds(110, 31, 105, 20);
		add(textFieldId);
		textFieldId.setColumns(10);
		
		textFieldName = new JTextField();
		textFieldName.setColumns(10);
		textFieldName.setBounds(110, 68, 105, 20);
		add(textFieldName);
		
		textFieldDesc = new JTextField();
		textFieldDesc.setColumns(10);
		textFieldDesc.setBounds(28, 138, 187, 88);
		add(textFieldDesc);
	}
	
	public void addController(ActionListener controller){
		System.out.print("Add Sale Template->Add controller");
		btnTemplateOrder.addActionListener(controller);
	}
}
